Skip to content

Conversation

@jrauh01
Copy link
Contributor

@jrauh01 jrauh01 commented Aug 8, 2025

Now also add pictograms to state ball in the following cases:

  • Disabled active checks
  • Disabled notifications

If both active checks and notifications are disabled, the “notifications disabled” icon is shown. This is because results may still arrive from passive checks, but they cannot trigger notifications when notifications are disabled.

Resolves #1097

@jrauh01 jrauh01 self-assigned this Aug 8, 2025
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Aug 8, 2025
@jrauh01 jrauh01 force-pushed the feature/more-state-pictograms branch from 7d04cb3 to 4c6da51 Compare August 8, 2025 12:23
@jrauh01 jrauh01 changed the base branch from feature/state-pictogram-tooltips to main August 11, 2025 12:00
@jrauh01 jrauh01 changed the base branch from main to feature/state-pictogram-tooltips August 11, 2025 12:01
@jrauh01 jrauh01 requested a review from lippserd August 11, 2025 12:08
Comment on lines 344 to 376
if ($icon === null) {
if (! $item->notifications_enabled) {
$icon = new Icon(Icons::NO_NOTIFICATIONS, ['title' => $this->translate('Notifications disabled')]);
} elseif (! $item->active_checks_enabled) {
$icon = new Icon(Icons::NO_ACTIVE_CHECKS, ['title' => $this->translate('Active checks disabled')]);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These icons are still missing in the specific column view list (e.g., URL: icingadb/hosts?columns=name). These should be added to the State::getIcon() method to cover all use cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The columns notifications_disabled and active_checks_disabled do not come from the state, but the corresponding host/service item. Would you still add this to State::getIcon()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather add the logic to StateRowItem::assembleVisual() directly to access the item's columns.

@nilmerg nilmerg added this to the 1.4.0 milestone Nov 12, 2025
@jrauh01 jrauh01 force-pushed the feature/state-pictogram-tooltips branch from 6a39bfc to 428345d Compare November 17, 2025 09:02
@jrauh01 jrauh01 force-pushed the feature/more-state-pictograms branch from 4c6da51 to ce7f0d2 Compare November 17, 2025 11:34
@jrauh01 jrauh01 force-pushed the feature/more-state-pictograms branch from ce7f0d2 to e10c9f4 Compare November 17, 2025 11:43
@jrauh01 jrauh01 force-pushed the feature/state-pictogram-tooltips branch 3 times, most recently from b7126c6 to 541ce9b Compare November 17, 2025 13:28
Now also add pictograms to state ball in the following cases:
- Disabled active checks
- Disabled notifications
@jrauh01 jrauh01 force-pushed the feature/more-state-pictograms branch from e10c9f4 to 543c756 Compare November 17, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants